cmake_minimum_required(VERSION 3.10)

# 设置项目名称
project(bitmap)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# 设置可执行文件的输出目录为 build/bin
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

# 添加可执行文件
# add_executable(bitmap src/bitmap.cpp)
# add_executable(bitmap_tests tests/bitmap_tests.cpp tests/BloomFilter_test.cpp tests/pair_tests.cpp)

# 添加头文件目录
# target_include_directories(bitmap PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

# set_target_properties(bitmap_tests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_executable(BloomFilter_test tests/BloomFilter_test.cpp)
set_target_properties(BloomFilter_test 
    PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
    OUTPUT_NAME my_BloomFiltertest
)

add_executable(pair_tests tests/pair_tests.cpp)
set_target_properties(pair_tests PROPERTIES 
    RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
    OUTPUT_NAME my_pairtest
)

add_executable(bitmap_tests tests/bitmap_tests.cpp)
set_target_properties(bitmap_tests PROPERTIES 
    RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
    OUTPUT_NAME bitmap_tests
)
target_include_directories(BloomFilter_test PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_include_directories(pair_tests PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
